/**
 * Copyright &copy; 2016-2017 <a href="https://www.lczyfz.com">联创智云</a> All rights reserved.
 */
package com.lczyfz.campusinfo.modules.campusinfo.entity;

import com.lczyfz.campusinfo.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

/**
 * 拾物找回Entity
 * @author zms
 * @version 2018-04-16
 */
public class CampusinfoPick extends DataEntity<CampusinfoPick> {
	
	private static final long serialVersionUID = 1L;
	private String userId;		// 拾到人
	private String classifyId;//物品分类
	private String pickName;		// 拾到物品名称
	private String pickAddress;		// 拾到地址
	private String pickPhone;		// 联系方式
	private String username;  //姓名
	public String getClassifyId() {
		return classifyId;
	}

	public void setClassifyId(String classifyId) {
		this.classifyId = classifyId;
	}
	public CampusinfoPick() {
		super();
	}

	public CampusinfoPick(String id){
		super(id);
	}

	@Length(min=1, max=64, message="拾到人长度必须介于 1 和 64 之间")
	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}
	
	@Length(min=1, max=30, message="拾到物品名称长度必须介于 1 和 30 之间")
	public String getPickName() {
		return pickName;
	}

	public void setPickName(String pickName) {
		this.pickName = pickName;
	}
	
	@Length(min=1, max=512, message="拾到地址长度必须介于 1 和 512 之间")
	public String getPickAddress() {
		return pickAddress;
	}

	public void setPickAddress(String pickAddress) {
		this.pickAddress = pickAddress;
	}
	
	@Length(min=0, max=11, message="联系方式长度必须介于 0 和 11 之间")
	public String getPickPhone() {
		return pickPhone;
	}
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}
	public void setPickPhone(String pickPhone) {
		this.pickPhone = pickPhone;
	}
	
}